package com.ray.springbootspringdata.service.impl;

import com.ray.springbootspringdata.dao.UserDao;
import com.ray.springbootspringdata.domain.User;
import com.ray.springbootspringdata.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * User: Ray.Shaw <p />
 * Time: 2019/10/30 18:06  <p />
 * Version: V1.0  <p />
 * Description:  <p />
 */

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> selectBy(String name) {
        return userDao.selectBy(name);
    }
}
